from enums.crawler_enum import SaleMethod, TransactionStatus
from enums.crawler_enum import HouseState

house_state_dict = {
    HouseState.SALE: "可售",
    HouseState.RESERVE: "已预订",
    HouseState.RECORD: "已备案",
    HouseState.SIGN: "已签约",
    HouseState.LEASE: "可租赁",
    HouseState.NOT_SALE: "不可售",
    HouseState.RESERVE2: "已预订",
    HouseState.SEAL_UP: "查封",
    HouseState.FROZEN: "冻结",
    HouseState.MORTGAGE_NOT_SIGN: "抵押可网签",
    HouseState.MORTGAGE_CAN_SIGN: "抵押不可网签",
}

project_base_info_dict = {
    '项目名称': 'community_name',
    '项目地址': 'address',
    '企业名称': 'developer',
    '所在区县': 'county',
}


sale_method_dict= {
    SaleMethod.SALE_METHOD_TWO: 1,
    SaleMethod.SALE_METHOD_THREE: 2,
    SaleMethod.SALE_METHOD_ONE: 3
}

transaction_status_dict = {
    TransactionStatus.TRANSACTION_STATUS_ONE: 1,
    TransactionStatus.TRANSACTION_STATUS_TWO: 2,
    TransactionStatus.TRANSACTION_STATUS_THREE: 3,
    TransactionStatus.TRANSACTION_STATUS_FOUR: 4,
    TransactionStatus.TRANSACTION_STATUS_FIVE: 5,
    TransactionStatus.TRANSACTION_STATUS_SIX: 5,
    TransactionStatus.TRANSACTION_STATUS_SEVEN: 5,
}